home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 June / EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso / earcd / utmisc2 / fiflb382.lha / inline / fifo.h
C/C++ Source or Header  |  1995-12-13  |  1KB  |  36 lines

  1. #ifndef _INLINE_FIFO_H
  2. #define _INLINE_FIFO_H
  3.  
  4. #ifndef __INLINE_STUB_H
  5. #include <inline/stubs.h>
  6. #endif
  7. #ifndef __INLINE_MACROS_H
  8. #include <inline/macros.h>
  9. #endif
  10.  
  11. #define BufSizeFifo(fifo) \
  12.     LP1(0x3c, long, BufSizeFifo, FifoHan, fifo, d0, \
  13.     struct Library *, FifoBase)
  14.  
  15. #define CloseFifo(fifo, flags) \
  16.     LP2NR(0x24, CloseFifo, FifoHan, fifo, d0, long, flags, d1, \
  17.     struct Library *, FifoBase)
  18.  
  19. #define OpenFifo(name, bytes, flags) \
  20.     LP3(0x1e, FifoHan, OpenFifo, char *, name, d0, long, bytes, d1, long, flags, a0, \
  21.     struct Library *, FifoBase)
  22.  
  23. #define ReadFifo(fifo, buf, bytes) \
  24.     LP3(0x2a, long, ReadFifo, FifoHan, fifo, d0, char **, buf, d1, long, bytes, a0, \
  25.     struct Library *, FifoBase)
  26.  
  27. #define RequestFifo(fifo, msg, req) \
  28.     LP3NR(0x36, RequestFifo, FifoHan, fifo, d0, struct Message *, msg, d1, long, req, a0, \
  29.     struct Library *, FifoBase)
  30.  
  31. #define WriteFifo(fifo, buf, bytes) \
  32.     LP3(0x30, long, WriteFifo, FifoHan, fifo, d0, char *, buf, d1, long, bytes, a0, \
  33.     struct Library *, FifoBase)
  34.  
  35. #endif /* _INLINE_FIFO_H */
  36.